package decorateMode.demo02;

/**
 * @author 帅小伙
 * @date 2021/12/27
 * @description  糖
 */
public class BeverageDecoratorSugar extends BeverageDecorator{

    public BeverageDecoratorSugar(decorateMode.demo02.Beverage beverage) {
        super(beverage);
    }

    @Override
    public int cost() {
        System.out.println("加糖加5元钱");
        return beverage.cost()+5;
    }

    @Override
    public void describe() {
        beverage.describe();
        System.out.println("加糖咯嘿嘿嘿");
    }
}
